/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.db.sys3e.e2_gruppe;

import de.mnit.basis.db.sys3e.e1_basis.S_E1_Manager;
import de.mnit.basis.db.zugang.S_DBZugang;
import de.mnit.basis.fehler.Fehler;
import de.mnit.basis.fehler.system.F_Sys_DB;

/**
 * @author Michael Nitsche
 * 11.03.2007	Erstellt
 */
public abstract class A_E2_Manager_Basis<T extends S_E1_Manager> {

	private final T s1manager;


	public A_E2_Manager_Basis(T s1manager) {
		this.s1manager=s1manager;
		Fehler.objekt.wenn_Null(s1manager);
	}


	public void verbinden(S_DBZugang dbz) throws F_Sys_DB {
		this.s1manager.verbinden(dbz);
	}

	public void schliessen() {
		this.s1manager.schliessen();
	}

	public boolean gAktiv() {
		return this.s1manager.gVerbunden();
	}

	protected T m() {
		return this.s1manager;
	}

}
